-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
# 57 회원 탈퇴 로직 #64
# 57 회원 탈퇴 로직 #64
Conversation
else -> throw UnApprovedUserException("회원가입 승인 대기 중인 유저입니다. info : [ userId = ${user.id} ]") | ||
} | ||
|
||
userRepository.delete(user) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user delete는 서비스에 놔두는게 나을 것 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8ea9ecf 변경했습니다.
bitgouel-api/src/main/kotlin/team/msg/domain/user/handler/UserEventHandler.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다.
💡 개요
회원 탈퇴 로직
📃 작업내용
회원 탈퇴 -> 회원 탈퇴 이벤트 발행 -> 회원 탈퇴 이벤트 핸들러에서 회원 탈퇴 로직 처리
phase 를 Before Commit 으로 설정
Authority when 문에서 else 일 때는 예외를 던져주었습니다.
🎸 기타
Inquery 또는 Post 같은 아직 만들어 놓지 않은 Entity 를 나중에 추가할 때 회원 탈퇴 로직에서 같이 삭제 해주시면 될 것 같습니다.